<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
    <base href="<%=basePath%>">
    <title>优标检测网</title>
    <!-- 浏览器上显示title 图标 icon图标 -->
	<link type="image/x-icon" rel="icon" href="<%=basePath %>resource/img/minilogo.png">

	<!-- 如果想让图标出现在收藏夹中，就：  -->
	<link type="image/x-icon" rel="shortcut icon" href="<%=basePath %>resource/img/minilogo.png">
	<link type="image/x-icon" rel="bookmark" href="<%=basePath %>resource/img/minilogo.png">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="优标">
	<meta http-equiv="description" content="优标">
    <link href="<%=basePath %>portal/css/main.css" type="text/css" rel="stylesheet">
    <title>质量控制详情</title>
    <style type="text/css">
    	.NCNewsListContentBackBtnBox{margin-top:20px;}
    	.signupinfo{font-size:14px;color:#f00;}
    </style>
</head>
<body>
<%@include file="p_head.jsp"%>
<div class="NCContent">
    <div class="NCNewsHead">
        <div class="MainPage">
            <div class="NCMain">
                <h2 class="NCHeadWord">质量控制 / Quality Control</h2>
            </div>
        </div>
    </div>
    <div class="NCNewsList">
        <div class="MainPage">
            <div class="NCMain">
                <div class="NCNewsListContent">
                    <div class="QCTitleContentHead">质量控制详情</div>
                    <a href="javascript:history.back()" class="SCBackBtn">返回</a>
                    <div class="QCContentBody">
                        <div class="QCContentText">
                            <div class="QCContentUlBox">
                                <ul>
                                    <li>项目名称：${qcVo.projectName}</li>
                                    <li>所属领域：${qcVo.fieldName}</li>
                                    <li>检测标准：${qcVo.standard}</li>
                                    <li>开始时间：<fmt:formatDate value="${qcVo.beginDate}" 
                                    pattern="yyyy-MM-dd"/></li>
                                    <li>结束时间：<fmt:formatDate value="${qcVo.endDate}" 
                                    pattern="yyyy-MM-dd"/></li>
                                    <li>&nbsp</li>
                                    <c:if test="${qcVo.gbjgxx==true}"><li>发起实验室名称：${qcVo.sponsorCompName}</li></c:if>
                                    <li>价格：${qcVo.price}元</li>
                                </ul>
                                <ul>
                                    <li>人数范围：${qcVo.countName}</li>
                                    <li>活动性质：${qcVo.natureName}</li>
                                    <li>项目进度：${qcVo.statusName }<c:if test="${qcVo.openFlag == '0'}">（关闭）</c:if></li>
                                    <li>反馈时间：<fmt:formatDate value="${qcVo.feedBackDate}" 
                                    pattern="yyyy-MM-dd"/></li>
                                </ul>
                                <div style="clear:both"></div>
                            </div>
                            项目描述：<br/>
                            ${qcVo.description}
                            <br/>
                            其他：<br/>
                            ${qcVo.other}
                            <br/>
                            <br/>
                            <c:if test="${qcVo.img1 != ''&& qcVo.img1 !=null}">
                            <img src="<%=basePath %>${qcVo.img1}"/>
                            </c:if>
                            <c:if test="${qcVo.img2 != ''&& qcVo.img2 !=null}">
                            <img src="<%=basePath %>${qcVo.img2}"/>
                            </c:if>
                            <c:if test="${qcVo.img3 != ''&& qcVo.img3 !=null}">
                            <img src="<%=basePath %>${qcVo.img3}"/>
                            </c:if>
							<c:if test="${qcVo.openFlag == false}">
							<br/>关闭原因：<br/>
                            ${qcVo.closeReason}
                            </c:if>
                        </div>
                        
                        <div class="NCNewsListContentBackBtnBox">
                        	<div class="signupinfo" style="display:none">报名成功</div><br>
                        	<c:if test="${account.accountType==2 && qcVo.statusName == '正在进行' && qcVo.sponsorId != sessionScope.Account.accountId}">
                            <a class="NCNewsListContentBackBtn" href="javascript:signup()">报名</a>
                            </c:if>
							<c:if test="${qcVo.reportStatus == true && showType !=null && showType !=''}">
                            <a class="NCNewsListContentBackBtn" href="<%=basePath %>${qcVo.filePath}" target="_blank">查看报告</a>
							</c:if>
                            <a class="NCNewsListContentBackBtn" href="javascript:history.back()">返回</a>
                        </div>
                        <div style="clear:both"></div>
                    </div>
                    <div class="NCNewsListContentFoot"></div>
                </div>
                <div class="NCNewsListAds">
                    <div class="NCNewsListAdsBox"><a href="${adLeft.adUrl}" target="_blank"><img src="<%=basePath%>${adLeft.file.path}"/></a></div>
                    <div class="NCNewsListAdsBox"><a href="${adMid.adUrl}" target="_blank"><img src="<%=basePath%>${adMid.file.path}"/></a></div>
                    <div class="NCNewsListAdsBox"><a href="${adRight.adUrl}" target="_blank"><img src="<%=basePath%>${adRight.file.path}"/></a></div>
                </div>
            </div>
        </div>
    </div>
</div>
<%@include file="p_foot.jsp"%>
</body>
<script src="<%=basePath %>portal/js/res/jquery-1.4.2.min.js"></script>
<script src="<%=basePath %>portal/js/res/responsiveslides.min.js"></script>

<script src="<%=basePath %>portal/js/page/base.js"></script>
<script src="<%=basePath %>portal/js/page/index.js"></script>
<script>
	function signup() {
		$.ajax({
               cache: true,
               type: "GET",
               url:"<%=basePath%>qualitycontrol_signup.action?qualityId=${qcVo.qcId}",
               async: false,
               error: function(request) {
                   $(".signupinfo").html("报名失败！").show();
               },
               success: function(mydata) {
               	   $(".signupinfo").html(mydata.msg).show();
			   }
		});
	}
</script>
</html>